home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2410 / 2410.xpi / chrome / content / foxmarks-dialog.xul < prev    next >
Extensible Markup Language  |  2010-01-28  |  14KB  |  363 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.  
  5. Copyright 2005-2009 Xmarks Inc.
  6.  
  7. foxmarks-dialog.xul: implements the main Foxmarks options dialog.
  8.  
  9. -->
  10.  
  11. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
  12. <?xml-stylesheet href="chrome://foxmarks/skin/foxmarks.css" type="text/css" ?>
  13.  
  14.  
  15. <!DOCTYPE dialog SYSTEM "chrome://foxmarks/locale/foxmarks.dtd">
  16.  
  17. <prefwindow id="foxmarks-settings"
  18.   title="&dialog.title;"
  19.   windowtype="foxmarks:settings"
  20.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  21.   xmlns:html="http://www.w3.org/1999/xhtml"
  22.   buttons="help,accept,cancel"
  23.   ondialogaccept="return dialogMgr.onOK();"
  24.   ondialogcancel="return dialogMgr.onCancel();"
  25.   ondialoghelp="return dialogMgr.onHelp();"
  26.   onload="dialogMgr.onSetup();"
  27.   onunload="dialogMgr.onUnload();"
  28.   onclick="dialogMgr.onClick();"
  29.   persist="screenX screenY" >
  30.  
  31.  
  32.  
  33.   <prefpane id="foxmarks-mainpane" label="&label.status;" flex="1" 
  34.     minheight="400"
  35.     image="chrome://foxmarks/skin/images/pane-selector-general.png">
  36.  
  37.     <preferences>
  38.       <preference id="foxmarks-username" 
  39.         name="extensions.xmarks.username" instantApply="true" 
  40.         type="string" onchange="Xmarks.gSettings.ClearCredentials()" />
  41.       <preference id="foxmarks-autosync" 
  42.         name="extensions.xmarks.synchOnTimer" type="bool" />
  43.       <preference id="foxmarks-rememberpassword"
  44.         name="extensions.xmarks.rememberPassword" type="bool" 
  45.         instantApply="true" />
  46.     </preferences>
  47.  
  48.     <deck selectedIndex="0" id="foxmarks-statusdeck" >
  49.       <vbox>
  50.         <image id="ping" height="1" width="1" />
  51.         <groupbox>
  52.           <caption label="&label.current.status;" />
  53.           <vbox flex="1" id="statusbox">
  54.             <hbox>
  55.               <image id="status-image" width="36" height="28" />
  56.               <label id="status-text"  
  57.                 style="font-size: 22px;font-family:arial,sans-serif;"/>
  58.             </hbox>
  59.           </vbox>
  60.           <hbox align="center">
  61.             <label value="&dialog.label.lastsync;" />
  62.             <label id="lastSynchDate" />
  63.             <spacer flex="1" />
  64.             <button label="&dialog.label.syncNow;" 
  65.               class="mainpane-button"
  66.               oncommand="dialogMgr.synchronizeNow();" />
  67.           </hbox>
  68.  
  69.         </groupbox>
  70.         <groupbox>
  71.           <caption label="&label.account;" />
  72.           <grid>
  73.             <columns> <column /><column /></columns>
  74.             <rows>
  75.               <row align="center">
  76.                 <label control="username" 
  77.                   value="&dialog.label.username;" />
  78.                 <textbox id="username" size="32"
  79.                   preference="foxmarks-username" />
  80.               </row>
  81.               <row align="center">
  82.                 <label control="password" 
  83.                   value="&dialog.label.password;" />
  84.                 <textbox id="password" type="password" size="32"/>
  85.               </row>
  86.               <row align="center">
  87.                 <spacer flex="1" />
  88.                 <checkbox id="rememberpw"
  89.                   label="&dialog.label.rememberPassword;"
  90.                   preference="foxmarks-rememberpassword" />
  91.               </row>
  92.               <row align="center">
  93.                 <spacer flex="1" />
  94.                 <hbox>
  95.                   <label class="text-link"
  96.                     onclick='dialogMgr.panes.general.forgotPassword()'                                value="&dialog.label.forgotPassword;" />
  97.                   <spacer flex="1" />
  98.                 </hbox>
  99.               </row>
  100.             </rows>
  101.           </grid>
  102.           <hbox >
  103.             <spacer flex="1" />
  104.             <button label="&dialog.label.runWizard;" 
  105.               class="mainpane-button"
  106.               oncommand="dialogMgr.runSetupWizard();" />
  107.           </hbox>
  108.         </groupbox>
  109.         <vbox  flex="1" align="end">
  110.           <label id="version" />
  111.         </vbox>
  112.       </vbox>
  113.       <vbox>
  114.         <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;font-size: 14px;">
  115.           &label.syncdisabled;
  116.         </description>
  117.         <hbox>
  118.           <spacer flex="1"/>
  119.           <button flex="0" 
  120.             label="&dialog.label.runWizard;" class="mainpane-button"
  121.             oncommand="dialogMgr.runSetupWizard();" />
  122.         </hbox>
  123.       </vbox>
  124.     </deck>
  125.   </prefpane>
  126.  
  127.   <prefpane id="foxmarks-syncpane" label="&label.sync;" flex="1"
  128.     image="chrome://foxmarks/skin/images/pane-selector-types.png">
  129.     <preferences>
  130.       <preference id="foxmarks-synconshutdown"
  131.         name="extensions.xmarks.syncOnShutdown" type="int" />
  132.       <preference id="foxmarks-askfirst" type="bool"
  133.         name="extensions.xmarks.syncOnShutdownAsk" />
  134.     </preferences>
  135.     <vbox style="padding-bottom: 8em;">
  136.       <groupbox flex="1">
  137.         <caption label="&label.sync.caption;" />
  138.         <checkbox id="sync-bookmarks" label="&label.sync.bookmarks;"
  139.           oncommand="dialogMgr.panes.sync.handleBookmarkSync();" />
  140.         <hbox>
  141.           <checkbox id="sync-passwords" label="&label.sync.passwords;"
  142.             oncommand="dialogMgr.panes.sync.handlePasswordSync();" />
  143.           <button id="sync-resetpin"  
  144.             label="&label.sync.resetpin;" 
  145.             oncommand="dialogMgr.panes.sync.doResetPIN();" />
  146.           <button id="sync-deletepasswords"  
  147.             label="&label.sync.deletepasswords;" 
  148.             oncommand="dialogMgr.panes.sync.doDeletePasswords();" />
  149.         </hbox>
  150.         <label id="onlyFF3" value="&label.sync.onlyff3;" />
  151.       </groupbox>
  152.       <groupbox flex="1">
  153.         <caption label="&label.synchronization;" />
  154.         <hbox align="center">
  155.           <checkbox id="autosync" label="&dialog.label.ontimer;"
  156.             preference="foxmarks-autosync" />
  157.           <spacer flex="1" />
  158.         </hbox>
  159.         <checkbox id="synconshutdown" 
  160.           label="&dialog.label.synconshutdown;"
  161.           onsynctopreference="return dialogMgr.panes.general.syncOnShutdownToPreference();"
  162.           oncommand="dialogMgr.panes.general.syncOnShutdownChanged()"
  163.           preference="foxmarks-synconshutdown" />
  164.         <hbox align="center">
  165.           <spacer style="width: 1.4em" />
  166.           <checkbox id="askfirst" label="&dialog.label.askfirst;" 
  167.             preference="foxmarks-askfirst" />
  168.         </hbox>
  169.       </groupbox>
  170.     </vbox>
  171.   </prefpane>
  172.  
  173.   <prefpane id="foxmarks-restorepane" label="&label.restore;" flex="1"
  174.     image="chrome://foxmarks/skin/images/pane-selector-restore.png" >
  175.     <description id="foxmarks-restoreprofile"  hidden="true" 
  176.       style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  177.       &restore.norestoreprofile;
  178.     </description>
  179.     <description id="foxmarks-restorenewuser"  hidden="true" 
  180.       style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  181.       &restore.norestorenewuser;
  182.     </description>
  183.     <description id="foxmarks-restoreownuser" hidden="true" 
  184.       style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  185.       &restore.norestoreownuser;
  186.     </description>
  187.     <description id="foxmarks-restoredesc" 
  188.       style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  189.       &desc.restore;
  190.     </description>
  191.     <groupbox id="foxmarks-restorebox">
  192.       <caption label="&restore.boxlabel;" />
  193.       <listbox id="foxmarks-restorelist" height="190"
  194.         seltype="single" disabled="true" >
  195.         <listitem>
  196.           <listitem 
  197.             class="listcell-iconic" label="&label.restore.loading;"
  198.             image="chrome://foxmarks/skin/images/Throbber-small.gif"
  199.             />
  200.         </listitem>
  201.       </listbox>
  202.       <hbox>
  203.         <spacer flex="1"/>
  204.         <button  id="foxmarks-viewrestore" disable="true"
  205.           label="&label.restore.view;" 
  206.           oncommand="dialogMgr.panes.restore.viewRestore();" />
  207.         <button  id="foxmarks-dorestore" disable="true"
  208.           label="&label.restore.restore;" 
  209.           oncommand="dialogMgr.panes.restore.restore();" />
  210.       </hbox>
  211.     </groupbox>
  212.     <label value="" />
  213.     <label value="" />
  214.   </prefpane>
  215.   <prefpane id="foxmarks-profilepane" label="&label.profiles;" flex="1"
  216.     image="chrome://foxmarks/skin/images/pane-selector-profiles_TEMP.png">
  217.     <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
  218.       &desc.profile;
  219.     </description>
  220.     <hbox style="padding-bottom: 8em;">
  221.       <groupbox flex="1">
  222.         <hbox align="center">
  223.           <label value="&label.manageprofiles;" />
  224.           <spacer flex="1" />
  225.           <button id="launchMyProfiles" class="manage-profile-button"
  226.             label="&label.profile.my;" 
  227.             oncommand="dialogMgr.panes.profile.myFoxmarks();" />
  228.         </hbox>
  229.         <hbox align="center">
  230.           <label value="&label.profilechoice;" />
  231.           <label id="profileName" /> 
  232.           <spacer flex="1" />
  233.           <button id="profileChangeButton" 
  234.             class="manage-profile-button"
  235.             label="&label.profile.change;" 
  236.             oncommand="dialogMgr.panes.profile.changeProfile();" />
  237.         </hbox>
  238.       </groupbox>
  239.     </hbox>
  240.   </prefpane>
  241.  
  242.   <prefpane id="foxmarks-discoverypane" label="&label.discovery;" flex="1"
  243.     image="chrome://foxmarks/skin/images/pane-selector-discovery.png">
  244.     <description style="width: 30em;"> 
  245.       &desc.discover;
  246.     </description>
  247.     <groupbox style="height: 280px;">
  248.       <hbox align="center">
  249.         <vbox>
  250.           <checkbox id="searchboost"
  251.             label="&label.searchboost;" oncommand=
  252.             "dialogMgr.panes.discover.onSearchBoostChanged()" />
  253.  
  254.           <description style="padding-left: 22px; width: 25;">
  255.             &desc.searchboost;
  256.           </description>
  257.           <checkbox id="siteboost"  
  258.             oncommand="dialogMgr.panes.discover.onOK();"
  259.             label="&label.siteboost;" />
  260.           <description style="padding-left: 22px; width: 25em;">
  261.             &desc.siteboost;
  262.           </description>
  263.           <checkbox id="tagsuggest"
  264.             oncommand="dialogMgr.panes.discover.onOK();"
  265.             label="&label.tagsandreviews;" />
  266.           <description style="padding-left: 22px; width: 25em;">
  267.             &desc.tagsandreviews;
  268.           </description>
  269.         </vbox>
  270.       </hbox>
  271.     </groupbox>
  272.   </prefpane>
  273.  
  274.   <prefpane id="foxmarks-advpane" label="&label.advanced;" flex="1" 
  275.     image="chrome://foxmarks/skin/images/pane-selector-advanced.png">
  276.     <preferences>
  277.       <preference id="foxmarks-encrypt" 
  278.         name="extensions.xmarks.securityLevel" type="int" instantApply="true" />
  279.       <preference id="foxmarks-enablelogging"
  280.         name="extensions.xmarks.enableLogging" type="bool" />
  281.       <preference id="foxmarks-useownserver"
  282.         name="extensions.xmarks.useOwnServer" type="bool"
  283.         onchange="dialogMgr.panes.advanced.useOwnServerChanged()" />
  284.       <preference id="foxmarks-url" 
  285.         name="extensions.xmarks.url-bookmarks" 
  286.         instantApply="true" type="string" />
  287.       <preference id="foxmarks-passwordurl" 
  288.         name="extensions.xmarks.url-passwords" 
  289.         instantApply="true" type="string" />
  290.     </preferences>
  291.     <groupbox>
  292.       <caption label="&label.security;" />
  293.       <hbox align="center">
  294.         <label control="encrypt" value="&label.encrypt;" />
  295.         <menulist id="encrypt" preference="foxmarks-encrypt" >
  296.           <menupopup>
  297.             <menuitem label="&label.noencrypt;" value="-1" />
  298.             <menuitem label="&label.passwordonly;" value="0" />
  299.             <menuitem label="&label.encryptall;" value="1" />
  300.           </menupopup>
  301.         </menulist>
  302.       </hbox>
  303.     </groupbox>
  304.     <groupbox>
  305.       <caption label="&label.manualoverwrite;" />
  306.       <hbox align="center">
  307.         <label value="&label.forceoverwriteserver;" />
  308.         <spacer flex="1" />
  309.         <button label="&label.upload;" class="manual-overwrite-button" 
  310.           oncommand="dialogMgr.uploadNow();" flex="0" id="upload" />
  311.       </hbox>
  312.       <hbox align="center">
  313.         <label value="&label.forceoverwritelocal;" />
  314.         <spacer flex="1" />
  315.         <button label="&label.download;" 
  316.           class="manual-overwrite-button"
  317.           oncommand="dialogMgr.downloadNow();" flex="0" />
  318.       </hbox>
  319.     </groupbox>
  320.     <groupbox flex="1">
  321.       <caption label="&label.logging;" />
  322.       <hbox align="center">
  323.         <checkbox label="&label.enablelogging;"
  324.           preference="foxmarks-enablelogging" />
  325.         <spacer flex="1" />
  326.         <button label="&label.showlogfile;" 
  327.           oncommand="dialogMgr.panes.advanced.displayLogFile()" />
  328.       </hbox>
  329.     </groupbox>
  330.     <groupbox>
  331.       <caption label="&label.server;" />
  332.       <hbox align="center">
  333.         <checkbox id="useown" label="&label.useownserver;"
  334.           oncommand="return dialogMgr.panes.advanced.useOwnServer();"
  335.           preference="foxmarks-useownserver" />
  336.       </hbox>
  337.       <hbox align="center">
  338.         <spacer style="width: 1.275em" />
  339.         <label id="useown-url-label" value="&label.url;" />
  340.         <textbox id="url" flex="1" preference="foxmarks-url" />
  341.       </hbox>
  342.       <hbox align="center">
  343.         <spacer style="width: 1.275em" />
  344.         <label id="useown-passwordurl-label" 
  345.           value="&label.passwordurl;" />
  346.         <textbox id="passwordurl" flex="1" 
  347.           preference="foxmarks-passwordurl" />
  348.       </hbox>
  349.       <vbox align="left">
  350.         <label class="text-link" style="padding-left: 16px;"
  351.           onclick='dialogMgr.panes.advanced.moreOwnServer();'
  352.           value="&label.ownserver.moreinfo;" />
  353.       </vbox>
  354.     </groupbox>
  355.     <label value="" />
  356.   </prefpane>
  357.  
  358.   <script src="foxmarks-dialog.js" />
  359.   <script src="foxmarks-settings.js" />
  360.   <script src="foxmarks-uitools.js" />
  361.  
  362. </prefwindow>
  363.